<?php require_once(dirname(__FILE__).'/inc/config.inc.php');
if ( $_SESSION['adminlevel']>1  &&  $_SESSION['is_wage']!='1' ){
	echo "你没有权限";
	exit();
}
require_once "function.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>修改工资信息</title>
	<link href="templates/style/admin.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="templates/js/jquery.min.js"></script>
	<script type="text/javascript" src="layer/layer.js"></script>
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="ui/css/bootstrap.min.css">
	<link rel="stylesheet" href="ui/css/bootstrap-theme.min.css" >
	<link rel="stylesheet" href="templates/js/zoomify.min.css">
	<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
	<style type="text/css">
		body{ width: 900px; margin: 0 auto; padding: 0; }
		.main_box{width: 900px;margin:0 auto; height: auto; overflow: hidden;}
		.main_box h1{ text-align: center; }
		.mb10{ margin-bottom: 10px; }
		.w58{ width: 50px !important }
		.tx-l{ text-align: left; }
		.w650{ width: 650px; }
		.f-b{ font-weight: bold; color: red; }
		.table{ margin:0 !important; }
		.headimgurl{ width: 100px; height: 100px; border-radius: 100px; }
		.user-item{text-align: center; margin: 10px 0; width: 14%; float: left; color: red}
	</style>
</head>
<body>

	
	<div class="main_box" >
		<div class="row ">
			<div class="col-md-12"><h1>员工列表</h1></div>
		</div>
		<div class="row mb10">
			<?php
			$sql="SELECT * FROM `#@__user`   where level<5   order by id asc  ";
			$row =$dosql->Execute($sql,10);
			while($row = $dosql->GetArray(10))
			{
				$uid=$row['id'];
				$wage=$dosql->GetOne("SELECT wage_month FROM `#@__wage`  where uid='$uid' AND is_delete='0' order by id desc ");
				$wage_month="";
				if(is_array($wage) && $wage['wage_month']>0){
					$wage_month=date("Y-m",$wage['wage_month']);
				}
				?>

				<div class="user-item"><?php echo "工资：".$wage_month?><a href="wage_add.php?uid=<?php echo $row['id']?>"><img class="headimgurl" src="<?php echo $row['headimgurl']?>"><br><?php echo $row['truename']?></a></div>
				
			<?php }?>
		</div>

	</div>